# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy

from scrapy.loader import ItemLoader
from scrapy.loader.processors import TakeFirst


class VillageItemLoader (ItemLoader):
    # 自定义itemLoader,用于存储爬虫所抓取的字段内容
    default_output_processor = TakeFirst()


# 小区
class VillageItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    # 小区名id
    id = scrapy.Field()
    # 小区名称
    name = scrapy.Field()
    # 区
    district = scrapy.Field()
    # 商圈
    bizcircle = scrapy.Field()
    # 平均价
    avgPrice = scrapy.Field()
    # 在售数目
    onSale = scrapy.Field()
    pass
